<div style="float:left">
	
<script>
function updateInfo()
{
	$("#info").html('<?php echo rootpath();?>'+$("#prjname").val());
}
</script>
<h2>新建项目</h2>
<p>
<form action="<?php echo url('newPrj','Project');?>" method="POST">
	项目名: <input type="text" id="prjname" name="prjname" onkeyup="updateInfo()" /><br />
	<input type="checkbox" class="checkbox" name="subdir" checked>为项目文件建单独的存放子目录<br />
	<input type="submit" value="提交" />
<?php if(C("TOKEN_ON")):?><input type="hidden" name="<?php echo C("TOKEN_NAME");?>" value="<?php echo Session::get(C("TOKEN_NAME")); ?>"/><?php endif;?></form>
</p>
<p id="info"></p>
</div>
<div style="float:left; margin-left: 30px">
<h2>最近打开的项目</h2>
<ul class="projects">
<?php if(is_array($history)): ?><?php $i = 0;?><?php $__LIST__ = $history?><?php if( count($__LIST__)==0 ) : echo "没有可选项目" ; ?><?php else: ?><?php foreach($__LIST__ as $key=>$app): ?><?php ++$i;?><?php $mod = (($i % 2 )==0)?><li><a href="<?php echo url('active','Project','',APP_NAME,array('name'=>$app));?>"><?php echo ($app); ?></a></li><?php endforeach; ?><?php endif; ?><?php else: echo "没有可选项目" ;?><?php endif; ?>
</ul>
<p>当前配置的web根目录 <?php echo ($root); ?></p>
<p>更改web根目录为以下目录</p>
<p>
<form action="<?php echo url('changeRoot','Index');?>" method="POST">
	<input type="text" name="RootDir" /> 
	<input type="submit" value="保存" />
<?php if(C("TOKEN_ON")):?><input type="hidden" name="<?php echo C("TOKEN_NAME");?>" value="<?php echo Session::get(C("TOKEN_NAME")); ?>"/><?php endif;?></form>
</p>
</div>